import request from '@/api/index'

// 获取公告
// export const recommendList = (data) => {
//     return request({
//         url: `/applet/reception/helpCenter/selectTitleInfoByType`,
//         params: data
//     })
// }
 

// 公告类型 4有問必答 5系統公告
// 系統公告/有問必答
export const getAnnouncementList = (params) => {
	// 4 5 
	return request({
		url: `/applet/reception/helpCenter/selectTitleInfoByType`,
		method: 'GET',
		params
	})
}

// 公告詳情 
export const getDetails = (id) => {
	return request({
		url: `/applet/reception/helpCenter/selectContentById?id=${id}`,
		method: 'GET'
	})
}